////管理留言板相关的状态
import { makeAutoObservable } from "mobx"
import { getCommentList, } from "@/api/article";

class CommentModule {
    comments = [];
    page = 1;
    pageSize = 6;
    async getCommentList(id, params = { page: 1, pageSize: 5 }) {
        const data = await getCommentList(id, params);
        this.comments = data.data;

        return data;
    }
    // async gitMsgboard(id, params = { page: 1, pageSize: 5 }) {
    //     const data = await gitMsgboard(id, params);
    //     this.comments = data.data;
    //     console.log(data)
    //     return data;
    // }

}

export default makeAutoObservable(new CommentModule());